package it.mp.multitask.factory;

import it.mp.multitask.Main;
import android.content.SharedPreferences;
import android.graphics.drawable.BitmapDrawable;

public class StyleFactory {
	private StyleFactory(){
		super();
	}
	public static final Style getStyle(int styleScelto,SharedPreferences prefs, BitmapDrawable bmpCestino, Main main,int dimensioneSchermo){
		if (styleScelto==Style.LAYOUT_STANDARD){
			return new StyleStandard(prefs,bmpCestino,main,dimensioneSchermo);
		}else if (styleScelto==Style.LAYOUT_DIALOG){
			return new StyleDialog(prefs,bmpCestino,main);
		}else if (styleScelto==Style.LAYOUT_EXTENDED){
			return new StyleIphone(prefs,bmpCestino,main,dimensioneSchermo);
		}else{
			return new StyleStandard(prefs,bmpCestino,main,dimensioneSchermo);
		}
	}
}
